/*
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * Warning! This file is generated. Modify at your own risk.
 */

package com.google.api.services.gan.model;

import com.google.api.client.http.HttpHeaders;
import com.google.api.client.json.GenericJson;
import com.google.api.client.json.JsonString;
import com.google.api.client.util.DateTime;

/**
 * A LinkResource.
 *
 * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
 * transmitted over HTTP when working with the Google Affiliate Network API. For a detailed
 * explanation see:
 * <a href="http://code.google.com/p/google-api-java-client/wiki/Json">http://code.google.com/p/google-api-java-client/wiki/Json</a>
 * </p>
 *
 * @author Google, Inc.
 */
public final class Link extends GenericJson {

  /**
   * Flag for if this link is active.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private Boolean isActive;

  /**
   * The link type.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String linkType;

  /**
   * The kind for one entity.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String kind;

  /**
   * Date that this link becomes inactive.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private DateTime endDate;

  /**
   * Description.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String description;

  /**
   * The logical name for this link.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String name;

  /**
   * Date that this link becomes active.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private DateTime startDate;

  /**
   * Date that this link was created.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private DateTime createDate;

  /**
   * image alt text.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String imageAltText;

  /**
   * The ID of this link.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key @JsonString
  private Long id;

  /**
   * The advertiser id for the advertiser who owns this link.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key @JsonString
  private Long advertiserId;

  /**
   * Tracking url for impressions.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String impressionTrackingUrl;

  /**
   * Promotion Type
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String promotionType;

  /**
   * Duration
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String duration;

  /**
   * Authorship
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String authorship;

  /**
   * Availability.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String availability;

  /**
   * Tracking url for clicks.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String clickTrackingUrl;

  /**
   * The destination URL for the link.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String destinationUrl;

  /**
   * Flag for if this link is active.
   * The value returned may be {@code null}.
   */
  public Boolean getIsActive() {
    return isActive;
  }

  /**
   * Flag for if this link is active.
   * The value set may be {@code null}.
   */
  public Link setIsActive(Boolean isActive) {
    this.isActive = isActive;
    return this;
  }

  /**
   * The link type.
   * The value returned may be {@code null}.
   */
  public String getLinkType() {
    return linkType;
  }

  /**
   * The link type.
   * The value set may be {@code null}.
   */
  public Link setLinkType(String linkType) {
    this.linkType = linkType;
    return this;
  }

  /**
   * The kind for one entity.
   * The value returned may be {@code null}.
   */
  public String getKind() {
    return kind;
  }

  /**
   * The kind for one entity.
   * The value set may be {@code null}.
   */
  public Link setKind(String kind) {
    this.kind = kind;
    return this;
  }

  /**
   * Date that this link becomes inactive.
   * The value returned may be {@code null}.
   */
  public DateTime getEndDate() {
    return endDate;
  }

  /**
   * Date that this link becomes inactive.
   * The value set may be {@code null}.
   */
  public Link setEndDate(DateTime endDate) {
    this.endDate = endDate;
    return this;
  }

  /**
   * Description.
   * The value returned may be {@code null}.
   */
  public String getDescription() {
    return description;
  }

  /**
   * Description.
   * The value set may be {@code null}.
   */
  public Link setDescription(String description) {
    this.description = description;
    return this;
  }

  /**
   * The logical name for this link.
   * The value returned may be {@code null}.
   */
  public String getName() {
    return name;
  }

  /**
   * The logical name for this link.
   * The value set may be {@code null}.
   */
  public Link setName(String name) {
    this.name = name;
    return this;
  }

  /**
   * Date that this link becomes active.
   * The value returned may be {@code null}.
   */
  public DateTime getStartDate() {
    return startDate;
  }

  /**
   * Date that this link becomes active.
   * The value set may be {@code null}.
   */
  public Link setStartDate(DateTime startDate) {
    this.startDate = startDate;
    return this;
  }

  /**
   * Date that this link was created.
   * The value returned may be {@code null}.
   */
  public DateTime getCreateDate() {
    return createDate;
  }

  /**
   * Date that this link was created.
   * The value set may be {@code null}.
   */
  public Link setCreateDate(DateTime createDate) {
    this.createDate = createDate;
    return this;
  }

  /**
   * image alt text.
   * The value returned may be {@code null}.
   */
  public String getImageAltText() {
    return imageAltText;
  }

  /**
   * image alt text.
   * The value set may be {@code null}.
   */
  public Link setImageAltText(String imageAltText) {
    this.imageAltText = imageAltText;
    return this;
  }

  /**
   * The ID of this link.
   * The value returned may be {@code null}.
   */
  public Long getId() {
    return id;
  }

  /**
   * The ID of this link.
   * The value set may be {@code null}.
   */
  public Link setId(Long id) {
    this.id = id;
    return this;
  }

  /**
   * The advertiser id for the advertiser who owns this link.
   * The value returned may be {@code null}.
   */
  public Long getAdvertiserId() {
    return advertiserId;
  }

  /**
   * The advertiser id for the advertiser who owns this link.
   * The value set may be {@code null}.
   */
  public Link setAdvertiserId(Long advertiserId) {
    this.advertiserId = advertiserId;
    return this;
  }

  /**
   * Tracking url for impressions.
   * The value returned may be {@code null}.
   */
  public String getImpressionTrackingUrl() {
    return impressionTrackingUrl;
  }

  /**
   * Tracking url for impressions.
   * The value set may be {@code null}.
   */
  public Link setImpressionTrackingUrl(String impressionTrackingUrl) {
    this.impressionTrackingUrl = impressionTrackingUrl;
    return this;
  }

  /**
   * Promotion Type
   * The value returned may be {@code null}.
   */
  public String getPromotionType() {
    return promotionType;
  }

  /**
   * Promotion Type
   * The value set may be {@code null}.
   */
  public Link setPromotionType(String promotionType) {
    this.promotionType = promotionType;
    return this;
  }

  /**
   * Duration
   * The value returned may be {@code null}.
   */
  public String getDuration() {
    return duration;
  }

  /**
   * Duration
   * The value set may be {@code null}.
   */
  public Link setDuration(String duration) {
    this.duration = duration;
    return this;
  }

  /**
   * Authorship
   * The value returned may be {@code null}.
   */
  public String getAuthorship() {
    return authorship;
  }

  /**
   * Authorship
   * The value set may be {@code null}.
   */
  public Link setAuthorship(String authorship) {
    this.authorship = authorship;
    return this;
  }

  /**
   * Availability.
   * The value returned may be {@code null}.
   */
  public String getAvailability() {
    return availability;
  }

  /**
   * Availability.
   * The value set may be {@code null}.
   */
  public Link setAvailability(String availability) {
    this.availability = availability;
    return this;
  }

  /**
   * Tracking url for clicks.
   * The value returned may be {@code null}.
   */
  public String getClickTrackingUrl() {
    return clickTrackingUrl;
  }

  /**
   * Tracking url for clicks.
   * The value set may be {@code null}.
   */
  public Link setClickTrackingUrl(String clickTrackingUrl) {
    this.clickTrackingUrl = clickTrackingUrl;
    return this;
  }

  /**
   * The destination URL for the link.
   * The value returned may be {@code null}.
   */
  public String getDestinationUrl() {
    return destinationUrl;
  }

  /**
   * The destination URL for the link.
   * The value set may be {@code null}.
   */
  public Link setDestinationUrl(String destinationUrl) {
    this.destinationUrl = destinationUrl;
    return this;
  }

  private HttpHeaders responseHeaders;

  /**
   * Sets the HTTP headers returned with the server response, or <code>null</code>.
   *
   * This member should only be non-null if this object was the top level element of a response. For
   * example, a request that returns a single {@link Link} would include the response headers, while
   * a request which returns an array of {@link Link}, would have a non-null response header in the
   * enclosing object only.
   */
  public void setResponseHeaders(HttpHeaders responseHeaders) {
    this.responseHeaders = responseHeaders;
  }

  /**
   * Returns the HTTP headers that were returned with the server response, or
   * <code>null</code>.
   */
  public HttpHeaders getResponseHeaders() {
    return responseHeaders;
  }

}
